#!/bin/bash
data=`ps aux | grep "ucenter" | grep -v grep`
pid=`ps aux | grep "ucenter" | grep -v grep |awk -F ' ' ' {printf $2 }'`
if [ ! -d "/data/logs/ucenter" ];then
    mkdir -p /data/logs/ucenter
fi
echo "start_server: data" $data
echo "start_server: pid:" $pid

nohup /data/app/ucenter/ucenter.server -conf=conf/config_prod.yml > /data/logs/ucenter/run.log 2>&1 &
exit 0

#if [ ! "$pid" ]; then
#    nohup $local/ucenter > run.log 2>&1 &
#    echo "nohup succ"
#    exit 0
#else
#    exit 1
#fi